package com.zimmur.app.mocolink.domain.util;

public enum AppModuleEnum {
	Global("100","10"), //公用模块
	Account("200","20"), //账号管理
	Goods("300","30"), //商品模块
	GroupGoods("310","31"), //组货模块
	Topic("400","40"), //话题模块
	UserCenter("400","40"),//个人中心模块
	UserOrder("410","41"),//订单模块
	UserCollection("420","42"),//收藏模块
	UserComment("430","43"),//评论模块
	UserAddress("440","44");//地址模块
	private final String code;
	private final String moduleId;
	
	private AppModuleEnum(String code,String moduleId){
		this.code=code;
		this.moduleId=moduleId;
	}

	/**
	 * 获取模块ID	
	 * @return
	 */
	public String getModuleId() {
		return moduleId;
	}
	
	/**
	 * 获取模块编码
	 * @return
	 */
	public String getCode() {
		return code;
	}
	
	public static void main(String[] args) {
		AppModuleEnum enum1 = AppModuleEnum.Account;		
		System.out.println(enum1.getCode() + " "+ enum1.getModuleId());
		System.out.println(IDWorkFactory.getID(AppModuleEnum.Account));
	}
}
